package com.rsy.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rsy.common.utils.PageUtils;
import com.rsy.ware.dao.vo.SkuHasStockVo;
import com.rsy.ware.entity.WareSkuEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author rsy
 * @email sunlightcs@gmail.com
 * @date 2022-05-01 00:11:45
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);
    //将采购成功的入库
    void addStock(Long skuId, Long wareId, Integer skuNum);
    //查询库存
    List<SkuHasStockVo> getSkusHasStock(List<Long> skuIds);
}

